package com.example.myapp.ui;

import android.view.Gravity;
import android.view.View;
import android.widget.ImageView;

import androidx.drawerlayout.widget.DrawerLayout;

import com.example.myapp.R;
import com.example.myapp.base.BaseActivity;


public class LMainActivity extends BaseActivity {

    private DrawerLayout rootView;
    @Override
    protected void bindEvent() {

    }

    @Override
    protected void bindData() {

    }

    @Override
    protected void initView() {
        rootView =findViewById(R.id.drawer_layout);
        ImageView view= findViewById(R.id.img_user_head);
//       找到左边的头像布局
        view.setImageResource(R.drawable.ic_baseline_filter_1_24);
//        然后给头像设置一个新的图片

        findViewById(R.id.img_open).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                rootView.openDrawer(Gravity.START);
            }
        });
    }

    @Override
    protected int contentView() {
        return R.layout.activity_lol_main;
    }
}
